// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 获取部门列表 GET /api/v1/permCode/ */
export async function permCodeList(options?: { [key: string]: any }) {
  return request<API.PermCodeList>('/api/v1/permCode/', {
    method: 'GET',
    params: {...(options || {})},
  });
}

/** 新建权限 POST /api/v1/permCode */
export async function permCodeAdd(body: API.PermCodeItem, options?: { [key: string]: any }) {
  return request<API.CustomerResponse<any>>('/api/v1/permCode/', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
